#ifndef PRINTSETTINGVIEW_H
#define PRINTSETTINGVIEW_H

#include <QWidget>
#include <QSettings>
#include "SettingHelper.h"

namespace Ui
{
  class PrintSetting;
}


class PrintSettingView : public QWidget
{
    Q_OBJECT
public:
    explicit PrintSettingView(QWidget *parent = 0);
    ~PrintSettingView();
    void closeEvent(QCloseEvent *e);


    
    
private slots:
    void slot_devChanged(int index);
    void slot_paperChanged(int index);
    void slot_formChanged(int index);

private:
    void InitUi();
    void readSetting();
    void writeSetting();
private:
    Ui::PrintSetting *ui;
    QSettings *setting;

    SettingHelper *m_settingHelper;

    QStringList selDev;
    QStringList selDrive;
    QStringList selPaper;
    QStringList selForm;
    QStringList selLanguage;

    int curdevIndex;
    int curPaperIndex;
    int curformIndex;



    
};

#endif // PRINTSETTINGVIEW_H
